home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
other
/
gui4cli
/
tools
/
rtn
/
getstring
< prev
next >
Wrap
Text File
|
1999-05-14
|
669b
|
40 lines
G4C
; GetString
; Get a string from user & pass it to $gui $rtn given
; Use :
; GUILOAD GUIS:TOOLS/RTN/GETSTRING Title StartingString Gui Routine Multi
WINBIG -1 -1 450 27 ""
WinType 11110010
BOX 0 0 0 0 out button
xonload title string gui rtn multi
gosub getstring startup
xonreload title string gui rtn multi
gosub getstring startup
xRoutine startup
guiopen getstring
setwintitle getstring '$title'
update getstring 1 $string
setgad getstring 1 ON
xonclose
guiquit getstring
XTEXTIN 5 5 438 17 "" string "" 150
gadid 1
if $string > ' '
gosub $gui $rtn '$getstring/string'
endif
if $multi == multi
; do multiple strings
else
guiquit getstring
endif